# $Id: PKGBUILD 87957 2013-04-09 11:17:40Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=ejabberd-mod_mysql-svn
pkgver=1137
pkgrel=1
pkgdesc="mysql support module for ejabberd"
arch=(any)
url="http://www.ejabberd.im/ejabberd-modules"
license=('GPL')
depends=(ejabberd)
makedepends=(erlang subversion)
options=()
source=("ejabberd-modules.svn::svn+https://svn.process-one.net/ejabberd-modules")
md5sums=('SKIP')

build() {
  cd $srcdir/ejabberd-modules.svn/mysql/trunk
  ./build.sh
  rm -rf ebin/.svn
}

package() {
  cd $srcdir/ejabberd-modules.svn/mysql/trunk
  install -d -m 0755 $pkgdir/usr/lib/ejabberd
  cp -r ebin $pkgdir/usr/lib/ejabberd/ebin
}
